#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/3/2
import random

print(random.random())
print(random.randint(1, 20))
print(random.randrange(1, 20))


# 生成随机验证码

def verification_code():
    check_code = ""
    for i in range(4):

        current = random.randrange(0, 4)

        if current != i:
            temp = chr(random.randint(65, 90))
        else:
            temp = random.randint(0, 9)
        check_code += str(temp)
    print(check_code)


verification_code()
